package com.design.pattern.singleton.hungry;/** * create by yufeng on 2021/7/3 21:00 */public class HungryStaticSingleton {    private static final HungryStaticSingleton hungrySingleton;    static {        hungrySingleton = new HungryStaticSingleton();    }    private HungryStaticSingleton(){}    public static HungryStaticSingleton getInstance(){        return  hungrySingleton;    }}